package cn.pconline.autoclub.entity;

import java.util.Date;

import org.gelivable.dao.Column;
import org.gelivable.dao.Entity;
import org.gelivable.dao.Id;
import org.gelivable.dao.Label;

/**
 * 车友会风格样式
 *
 * @author zhoutianhuai
 */
@Entity(tableName = "ac_club_style", logChange = true)
public class ClubStyle {

    @Id
    @Column(name = "club_id")
    private long clubId;// 车友会ID
    @Column(name = "style_id")
    private long styleId;// 风格样式ID
    @Label(value = "风格样式内容")
    @Column(name = "style_content")
    private String styleContent;//风格样式内容，json格式{background":"xx","coverImage":"xx","css":"xx","showImage":"xx",lineColor:xx，formColor:xx，txtColor:xx}
    @Column(name = "type")
    private int type;//样式类型 0-系统默认样式 1-自定义样式
    @Label(value = "创建时间")
    @Column(name = "create_at")
    private Date createAt;
    @Label(value = "创建人")
    @Column(name = "create_by")
    private long createBy;
    @Label(value = "更新人")
    @Column(name = "update_by")
    private long updateBy;
    @Label(value = "更新时间")
    @Column(name = "update_at")
    private Date updateAt;
    /**
     * 系统默认样式*
     */
    public static final int TYPE_DEFAULT = 0;
    /**
     * 自定义样式*
     */
    public static final int TYPE_CUSTOM = 1;
    /**
     * css常量*
     */
    public static final String CSS = "css";
    /**
     * 背景图常量*
     */
    public static final String BACKGROUND = "background";
    /**
     * 封面图常量*
     */
    public static final String COVERIMAGE = "coverImage";
    /**
     * 显示图片常量*
     */
    public static final String SHOWIMAGE = "showImage";
    /**
     * 人气flash的线条颜色
     */
    public static final String LINECOLOR = "lineColor";
    /**
     * 人气flash的表格颜色
     */
    public static final String FORMCOLOR = "formColor";
    /**
     * 人气flash的文本颜色
     */
    public static final String TXTCOLOR = "txtColor";

    public long getClubId() {
        return clubId;
    }

    public void setClubId(long clubId) {
        this.clubId = clubId;
    }

    public long getStyleId() {
        return styleId;
    }

    public void setStyleId(long styleId) {
        this.styleId = styleId;
    }

    public String getStyleContent() {
        return styleContent;
    }

    public void setStyleContent(String styleContent) {
        this.styleContent = styleContent;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(long createBy) {
        this.createBy = createBy;
    }

    public long getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(long updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(Date updateAt) {
        this.updateAt = updateAt;
    }
}
